.class Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$17;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$VideoRunnable;
.source "RewardsView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->play()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;)V
    .locals 0
    .parameter
    .parameter "x0"

    .prologue
    .line 800
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$17;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$VideoRunnable;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;)V

    return-void
.end method


# virtual methods
.method public doVideoRun()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 804
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "RewardsView"

    const-string v3, "Executing \'play\'"

    new-array v4, v5, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 805
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$17;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;->getVideoView()Landroid/widget/VideoView;

    move-result-object v0

    .line 806
    .local v0, videoView:Landroid/widget/VideoView;
    invoke-virtual {v0}, Landroid/widget/VideoView;->getCurrentPosition()I

    move-result v1

    if-nez v1, :cond_0

    .line 807
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$17;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    const-string v2, "started"

    new-array v3, v5, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireVideoEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 809
    :cond_0
    invoke-virtual {v0}, Landroid/widget/VideoView;->start()V

    .line 810
    return-void
.end method
